# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-autopep8
pkgver=1.5.4
pkgrel=0
pkgdesc="A tool that automatically formats Python code to conform to the PEP 8 style guide"
url="https://pypi.python.org/pypi/autopep8/"
arch="noarch"
license="MIT"
depends="python3 py3-setuptools py3-pycodestyle py3-toml"
checkdepends="py3-pytest"
source="https://github.com/hhatto/autopep8/archive/v$pkgver/autopep8-$pkgver.tar.gz"
builddir="$srcdir/autopep8-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="f830ca310616e1a151b3d7c78b61ec6d33db19c123d673729dc14ebd858e1f150d9405081a1fab30fbeac3ef59a5c216f1dd2a120623e7f3deb2770cc1854ad1  autopep8-1.5.4.tar.gz"
